package com.cc.dao;
import org.springframework.stereotype.Component;
@Component//目标
public class UserDaoImpl{
//public class UserDaoImpl implements UserDao {
    public int add(int a, int b) {
//        int c = 10/0;//异常
        System.out.println("调用add");
        return a+b;
    }
    public int delete() {
        System.out.println("调用delete方法");
        return 0;
    }

    public int select() {
        System.out.println("调用select方法");
        return 0;
    }
    public int update() {
      System.out.println("调用update方法");
        return 0;
    }

}
